<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<main class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-8 text-center">
            <h1><?php $this->title(); ?></h1>
        </div>
    </div>
    <div class="row justify-content-center mt-3">
        <div class="col-md-8 text-muted">
            <p><i><time datetime="<?php $this->date('c'); ?>"><?php $this->date('Y-m-d H:i'); ?></time></i></p>
        </div>
    </div>
    <div class="row justify-content-center mt-4">
        <div class="col-md-8">
            <article class="blog-post">
                <?php if ($this->content): ?>
                    <?php $this->content(); ?>
                <?php else: ?>
                    <p class="text-center">此页面内容尚未发布。</p>
                <?php endif; ?>
            </article>
        </div>
    </div>
</main>
<?php $this->need('footer.php'); ?>